const Websocket = require('ws');

let ws = new Websocket("ws://127.0.0.1:13998");

ws.on('message', function incoming(message) {
    console.log('接收到了信息： %s', message);
    //let jsonstr = JSON.parse(message);
    //console.log('json格式化后：' + jsonstr);
});